
Pod::Spec.new do |spec|
  spec.name         = "CHSimpleUI"
  spec.version      = "2.0.4"
  spec.summary      = "A short description of CHPodsFirstDemo."
  spec.description  = <<-DESC
         test----cyp
                   DESC
  spec.homepage     = "https://gitee.com/Cyptt"
  spec.license      = { :type => "MIT", :file => "FILE_LICENSE" }
  spec.author             = { "cyptt" => "ios" }
  spec.source       = { :git => "https://gitee.com/Cyptt/chsimple-ui.git", :tag => "#{spec.version}" }
 # spec.source_files  = ["CHSimpleUISDK/Base/*.{swift,h,m}","CHSimpleUISDK/CommonUI/*.{swift,h,m}","CHSimpleUISDK/Alert/*.{swift,h,m}","CHSimpleUISDK/Button/*.{swift,h,m"]
  
  # spec.resource = ''

  spec.platform     = :ios,"10"
  spec.dependency 'SnapKit',"5.6.0"
 
 spec.swift_version = '5.0'
 # spec.exclude_files = "Classes/Exclude"
 

#子组件
# base
 spec.subspec 'Base' do |base|
        base.source_files = 'CHSimpleUISDK/Base/*.{swift,h,m}'
        base.resource_bundles = {
       'CHSimpleBundle' => ['CHSimpleUISDK/CHSimpleBundle.bundle/*']
       }
end

#通用ui
spec.subspec 'CommonUI' do |common|
   common.source_files = 'CHSimpleUISDK/CommonUI/*.{swift,h,m}'
   common.dependency 'SnapKit'
   common.dependency 'CHSimpleUI/Base'
 end
 
 # 弹出框
spec.subspec 'Alert' do |alert|
    alert.source_files = ['CHSimpleUISDK/Alert/*.{swift,h,m}']
    alert.dependency 'SnapKit'
    alert.dependency 'CHSimpleUI/Base'
    alert.dependency 'CHSimpleUI/CommonUI'
end

#按钮
spec.subspec 'Button' do |button|
    button.source_files = 'CHSimpleUISDK/Button/*.{swift,h,m}'
end

# 通用工具
 spec.subspec 'ToolUtils' do |toolUtils|
    toolUtils.source_files = 'CHSimpleUISDK/ToolUtils/*.{swift,h,m}'
    toolUtils.dependency 'CHSimpleUI/Categery'
end

# 分类
 spec.subspec 'Categery' do |categery|
     categery.source_files = 'CHSimpleUISDK/Categery/*.{swift,h,m}'
end

# 搜索框
 spec.subspec 'Search' do |search|
      search.source_files = 'CHSimpleUISDK/Search/*.{swift,h,m}'
      search.dependency 'CHSimpleUI/Base'
end

# 位置location
 spec.subspec 'Location' do |location|
       location.source_files = 'CHSimpleUISDK/Location/*.{swift,h,m}'
end

# 自定义键盘
 spec.subspec 'CHKeyBoard' do |keyboard|
        keyboard.dependency 'SnapKit'
        keyboard.source_files = ['CHSimpleUISDK/CHKeyBoard/*.{swift,h,m}']
        keyboard.dependency 'CHSimpleUI/Base'
     
end
  
# signature 手写签名
 spec.subspec 'Signature' do |sign|
    sign.source_files = ['CHSimpleUISDK/Signature/*.{swift,h,m}']
end

# loading
 spec.subspec 'Loading' do |loading|
     loading.source_files = ['CHSimpleUISDK/Loading/*.{swift,h,m}']
end

# qrcode
 spec.subspec 'QRCode' do |qrcode|
      qrcode.source_files = ['CHSimpleUISDK/QRCode/*.{swift,h,m}']
end

# tabbar
 spec.subspec 'Tabbar' do |bar|
       bar.source_files = ['CHSimpleUISDK/Tabbar/*.{swift,h,m}']
       bar.dependency 'CHSimpleUI/Categery'
end

# Device
 spec.subspec 'Device' do |device|
        device.source_files = ['CHSimpleUISDK/Device/*.{swift,h,m}']
end


# SelectAllCell
 spec.subspec 'SelectAllCell' do |cell|
         cell.source_files = ['CHSimpleUISDK/SelectAllCell/*.{swift,h,m}']
         cell.dependency 'CHSimpleUI/Base'
         cell.dependency 'CHSimpleUI/Button'
end


# foundation
 spec.subspec 'CHFoundation' do |found|
          found.source_files = ['CHSimpleUISDK/CHFoundation/*.{swift,h,m}']

end

# CHSqlite3
 spec.subspec 'CHSqlite3' do |lite3|
        lite3.source_files = ['CHSimpleUISDK/CHSqlite3/*.{swift,h,m}']

end

# CHCrypto
 spec.subspec 'Crypto' do |cryto|
        cryto.source_files = ['CHSimpleUISDK/Crypto/*.{swift,h,m}']

end

# GridView
 spec.subspec 'GridView' do |gridView|
         gridView.source_files = ['CHSimpleUISDK/GridView/*.{swift,h,m}']
          gridView.dependency 'CHSimpleUI/Base'
          gridView.dependency 'CHSimpleUI/Categery'

end

# Sheet
 spec.subspec 'Sheet' do |sheet|
          sheet.source_files = ['CHSimpleUISDK/Sheet/*.{swift,h,m}']
          sheet.dependency 'CHSimpleUI/Search'
          sheet.dependency 'CHSimpleUI/CommonUI'
      
end

# listview
 spec.subspec 'ListView' do |list|
           list.source_files = ['CHSimpleUISDK/ListView/*.{swift,h,m}']
           list.dependency 'CHSimpleUI/Base'
           list.dependency 'CHSimpleUI/Categery'
           list.dependency 'CHSimpleUI/ToolUtils'
      
end

# viewpage
 spec.subspec 'ScrollViewPage' do |page|
            page.source_files = ['CHSimpleUISDK/ScrollViewPage/*.{swift,h,m}']
            page.dependency 'CHSimpleUI/CommonUI'
            page.dependency 'SnapKit'
      
end
  
  
# Camera

 spec.subspec 'Camera' do |camera|
             camera.source_files = ['CHSimpleUISDK/Camera/*.{swift,h,m}']
             camera.dependency 'CHSimpleUI/Alert'
             camera.dependency 'CHSimpleUI/Categery'
end

# CHReachability

 spec.subspec 'CHReach' do |reach|
              reach.source_files = ['CHSimpleUISDK/CHReachability/*.{swift,h,m}']
     
end

#pdf
 spec.subspec 'CHPDF' do |pdf|
              pdf.source_files = ['CHSimpleUISDK/CHPDF/*.{swift,h,m}']
     
end
  
#file
 spec.subspec 'File' do |file|
              file.source_files = ['CHSimpleUISDK/File/*.{swift,h,m}']
     
end
        
end
